DetFit

By: Ian Brubaker

To Start, we must install the package DetFit. To do so, go to
->File
->Install...
->Now select “Package” (default) as the Type of Item to Install
->Select the file DetFit7.m as the Source
->Name it DetFit7
->Press “OK”
Congratulations! DetFit is now instlled

Now, I want to call the package DetFit.

Get["DetFit7`"]

You may review the syntax and useful information by typing the following.

?DetFit

To show you an example, lets pick three data points. Note x, y, and their uncertainty lists must be equal in length.

x={1,2,3};
y={1,2,3};
σ={.1,.2,.2};

Now, I simply call the function giving it a domain of 0 to 3 for the fit line. I may also include graphics directives that are used in the function Show.

Definition[DetFit];

DetFit[x,y,σ,0,4,PlotRange->All]

Note that if you’re missing input values, it will not run.

DetFit[x,y,σ,0]

Similarly, single values for σ will cause the program to not run.

σ2=1;
DetFit[x,y,σ2]

If Lengths of lists do not match, an error will be displayed.

σ1={1};
DetFit[x,y,σ1,0,1]